package com.example.myapplication.ui.fragment;

import android.content.Context;
import android.os.Bundle;

import com.example.myapplication.util.LoadNetDataAsyncTask;

import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

public abstract  class BaseFragment extends Fragment implements LoadNetDataAsyncTask.onGetNetDataListener{

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }
    public void loadData(Context context,String path){
        LoadNetDataAsyncTask task = new LoadNetDataAsyncTask(context,this);
        task.execute(path);
    }

    @Override
    public abstract  void showDataFromNet(String s);
}
